package com.example.hybridmobiledemo.util;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import androidx.annotation.Nullable;

/**
 * @ClassName: SearHistorySQLiterOpenHelper$
 * @Description: 作用
 * @Author: letquit
 * @CreateDate: 23/10/2021$
 * @Version: 1.0
 */
public class SearHistorySQLiteOpenHelper extends SQLiteOpenHelper {
    public SearHistorySQLiteOpenHelper(@Nullable Context context, @Nullable String name, @Nullable SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    @Override
    public void onCreate(SQLiteDatabase sqLiteDatabase) {
        String sql = "create table SearHis(id integer primary key autoincrement, content varchar not null)";
        sqLiteDatabase.execSQL(sql);
    }

    @Override
    public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {

    }
}
